package dao

import (
	"time"
)

// 这是 LiDistributionOrder 的全局公开dao对象
var LiDistributionOrderDao = liDistributionOrderDao{}

// 这是 li_distribution_order表 的实体类
type LiDistributionOrder struct {
	Id                      int       `json:"id" form:"id" v:"id"`
	CreateTime              time.Time `json:"create_time" form:"create_time" v:"create_time"`
	DistributionId          string    `json:"distribution_id" form:"distribution_id" v:"distribution_id"`
	DistributionName        string    `json:"distribution_name" form:"distribution_name" v:"distribution_name"`
	DistributionOrderStatus string    `json:"distribution_order_status" form:"distribution_order_status" v:"distribution_order_status"`
	GoodsId                 string    `json:"goods_id" form:"goods_id" v:"goods_id"`
	GoodsName               string    `json:"goods_name" form:"goods_name" v:"goods_name"`
	Image                   string    `json:"image" form:"image" v:"image"`
	MemberId                string    `json:"member_id" form:"member_id" v:"member_id"`
	MemberName              string    `json:"member_name" form:"member_name" v:"member_name"`
	Num                     int       `json:"num" form:"num" v:"num"`
	OrderItemSn             string    `json:"order_item_sn" form:"order_item_sn" v:"order_item_sn"`
	OrderSn                 string    `json:"order_sn" form:"order_sn" v:"order_sn"`
	Rebate                  float64   `json:"rebate" form:"rebate" v:"rebate"`
	SellBackRebate          float64   `json:"sell_back_rebate" form:"sell_back_rebate" v:"sell_back_rebate"`
	SettleCycle             time.Time `json:"settle_cycle" form:"settle_cycle" v:"settle_cycle"`
	SkuId                   string    `json:"sku_id" form:"sku_id" v:"sku_id"`
	Specs                   string    `json:"specs" form:"specs" v:"specs"`
	StoreId                 string    `json:"store_id" form:"store_id" v:"store_id"`
	StoreName               string    `json:"store_name" form:"store_name" v:"store_name"`
}

// 注意:这是 LiDistributionOrder 的私有dao对象
type liDistributionOrderDao struct {
	Insert func(arg LiDistributionOrder) int                 //插入一条记录
	Update func(arg LiDistributionOrder) int                 //更新一条记录
	Delete func(arg LiDistributionOrder) int                 //删除一条记录
	Select func(arg LiDistributionOrder) LiDistributionOrder //获取一条记录
}
